package org.example.util;

public enum HexFormat {
    // 无分隔符分别展示0，8，16，32列
    FORMAT_HEX_0("", 0),
    FORMAT_HEX_8("", 8),
    FORMAT_HEX_16("", 16),
    FORMAT_HEX_32("", 32),

    // 带空格分隔符分别展示0，8，16，32列
    FORMAT_HEX_SPACE__0(" ", 0),
    FORMAT_HEX_SPACE_8(" ", 8),
    FORMAT_HEX_SPACE_16(" ", 16),
    FORMAT_HEX_SPACE_32(" ", 32);

    public final String separator; // 分隔符
    public final int column; // 展示几列

    HexFormat(String separator, int column) {
        this.separator = separator;
        this.column = column;
    }
}
